<template>
  <div class="child">
    <h1>我是Child组件</h1>
    <h2>
      我收到的ci：<input type="text" :value="ci" @input="handleInput">
    </h2>
  </div>
</template>

<script>
  export default {
    name:'Child',
    props:['ci','updateCi'],
    methods: {
      handleInput(event){
       this.updateCi(event.target.value)
      }
    },
  }
</script>

<style scoped>
  .child {
    background-color: orange;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
  }
  input {
    font-size: 30px;
  }
</style>